package LeetCode.month04.day119;

/**
 * @author 16778
 * @date 2025/11/29 8:14
 * @description
 */
public class No3512 {
    public int minOperations(int[] nums, int k) {
        int res = 0;
        for (int num : nums) {
            res = (res+num%k)%k;
        }
        return res;
    }
}
